/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file  LinIf.h
 * @brief Semidrive. AUTOSAR 4.3.1 Lin Stack
 */

#if !defined (LIN_IF_H)
#define LIN_IF_H

#ifdef __cplusplus
extern "C" {
#endif

/*****************Version Information************/
#define LINIF_AR_MAJOR_VERSION  4U
#define LINIF_AR_MINOR_VERSION  4U
#define LINIF_AR_PATCH_VERSION  0U

#define LINIF_SW_MAJOR_VERSION  1U
#define LINIF_SW_MINOR_VERSION  0U
#define LINIF_SW_PATCH_VERSION  0U

#define LINIF_VENDOR_ID         0x8C

/***********************************************************************
                             Header Includes
************************************************************************/

#include "ComStack_Types.h"
#include "Lin_Types.h"
#include "Lin_Ip.h"
#include "Lin_Cfg.h"


Std_ReturnType LinIf_HeaderIndication (NetworkHandleType Channel, Lin_PduType* PduPtr);
void LinIf_LinErrorIndication (NetworkHandleType Channel, Lin_SlaveErrorType ErrorStatus);
void LinIf_RxIndication (NetworkHandleType Channel, uint8* Lin_SduPtr);
void LinIf_TxConfirmation (NetworkHandleType Channel);

#ifdef __cplusplus
}
#endif
#endif /* LIN_IF_H */
